package org.ykh.gmall.base;


import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class BaseMongoEntity implements Serializable {

    @SchemaProperty(name = "id")
    @Id
    private String id;

    @SchemaProperty(name = "创建时间")
    @CreatedDate
    private Date createTime;

    @SchemaProperty(name = "更新时间")
    @LastModifiedDate
    private Date updateTime;

}
